package org2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("application.xml");
        UserService userService = context.getBean(UserService.class);
        userService.addUser();
        System.out.println("**********");
        userService.deletUser();
        System.out.println("**********");
        userService.updataUser();
        System.out.println("**********");
        userService.queryUser();
        System.out.println("**********");
    }
}
